package com.meitutest.autoscript.fluency;

import android.support.test.InstrumentationRegistry;
import android.support.test.uiautomator.UiDevice;

import org.junit.Before;
import org.junit.Test;

/**
 * Created by CrystalChen on 2017/9/2.
 */

public class SlideTest {
    private UiDevice uiDevice;
    private SwipeDevice swipeDevice;

    public SlideTest() {

    }

    @Before
    public void init() {
        uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        swipeDevice = new SwipeDevice(uiDevice);
        CommonArgs.initArgs();
//        DialogListener.startWatching(uiDevice);
    }

    @Test
    public void slide_fromBottom() {
        swipeDevice.fromBottom(CommonArgs.counts);
    }

    @Test
    public void slide_fromTop() {
        swipeDevice.fromTop(CommonArgs.counts);
    }

    @Test
    public void slide_fromLeft() {
        swipeDevice.fromLeft(CommonArgs.counts);
    }

    @Test
    public void slide_fromRight() {
        swipeDevice.fromRight(CommonArgs.counts);
    }
}
